package com.authentication.center.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author garvin
 * @date 2020-05-21
 */
@Data
@Table(name = "t_system_app")
public class SystemApp {
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 应用编码
     */
    @Column(name = "app_code")
    private String appCode;

    /**
     * 应用名称
     */
    @Column(name = "app_name")
    private String appName;

    /**
     * 应用描述
     */
    @Column(name = "app_describe")
    private String appDescribe;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @Column(name = "updated_by")
    private String updatedBy;

    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private Date updatedTime;

    public static final String ID = "id";

    public static final String DB_ID = "id";

    public static final String APP_CODE = "appCode";

    public static final String DB_APP_CODE = "app_code";

    public static final String APP_NAME = "appName";

    public static final String DB_APP_NAME = "app_name";

    public static final String APP_DESCRIBE = "appDescribe";

    public static final String DB_APP_DESCRIBE = "app_describe";

    public static final String CREATED_BY = "createdBy";

    public static final String DB_CREATED_BY = "created_by";

    public static final String CREATED_TIME = "createdTime";

    public static final String DB_CREATED_TIME = "created_time";

    public static final String UPDATED_BY = "updatedBy";

    public static final String DB_UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updatedTime";

    public static final String DB_UPDATED_TIME = "updated_time";
}